﻿using Architecture.Domain;
using Architecture.Repository.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Repository.Impl
{
    public class UserInfoRoleRepository : BaseRepository<UserInfoRole>, IUserInfoRoleRepository
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="context"></param>
        public UserInfoRoleRepository(EFCoreContext context) : base(context)
        {

        }

        /// <summary>
        /// 添加用户角色关系
        /// </summary>
        /// <param name="userInfoRole"></param>
        /// <returns></returns>
        public async Task<int> AddAsync(UserInfoRole userInfoRole)
        {
            return await base.AddAsync(userInfoRole);
        }

        //public async Task<object> GetModelById(int roleId)
        //{
        //    return await base.GetModelAsync(roleId);
        //}

    }
}
